package cn.tedu.service.impl;

import cn.tedu.entity.RoleMenusEntity;
import cn.tedu.mapper.RoleMenuMapper;
import cn.tedu.service.RoleMenusService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class RoleMenusServiceImpl extends ServiceImpl<RoleMenuMapper, RoleMenusEntity> implements RoleMenusService {
    @Autowired
    private RoleMenuMapper roleMenuMapper;
    @Override
    public void saveRoleMenus(Integer roleId,Integer[] menuIds) {
        roleMenuMapper.saveRoleMenus(roleId,menuIds);
    }
}
